<!-- 右 -->
<div class="content">
    <div class="header">
        <h1 class="page-title">权限列表</h1>
    </div>

    <div class="well">
        <a class="btn btn-primary" href="{:url('create')}">新增</a>
        <!-- table -->
        <table class="table table-bordered table-hover table-condensed">
            <thead>
                <tr> 
                    <th>编号</th>
                    <th>权限名称</th>
                    <th>上级id</th>
                    <th>控制器</th>
                    <th>方法</th>
                    <th>是否菜单项</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {foreach $list as $v}
                <tr class="success">
                    <td>{$v.id}</td>
                    <td>{$v.level|str_repeat='&emsp;',###*2}{$v.auth_name}</td>
                    <td>{$v.pid}</td>
                    <td>{$v.auth_c}</td>
                    <td>{$v.auth_a}</td>
                    <td>{$v.is_nav}</td>
                    <td>
                        <a href="{:url('admin/auth/edit',['id'=>$v.id])}"> 编辑 </a>
                        <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='{:url(\'admin/auth/delete\',[\'id\'=>$v.id])}'"> 删除 </a>
                    </td>
                </tr>
                {/foreach}
            </tbody>
        </table>
    </div>